package com.learn.micro_mall.domain.entity.member;

import com.learn.micro_mall.domain.vo.member.MemberLevelEntityId;
import com.learn.micro_mall.domain.vo.member.MemberLevelPriorityVO;
import com.learn.micro_mall.domain.vo.member.UpgradeConfigurationVO;
import com.sun.istack.internal.NotNull;
import lombok.Data;

@Data
public class MemberLevelEntity {

    private MemberLevelEntityId memberLevelEntityId;

    /**
     * 会员等级权益
     */
    private MemberLevelPriorityVO memberLevelPriorityVO;

    /**
     * 升级要求
     */
    private UpgradeConfigurationVO upgradeConfigurationVO;

    public void valid() throws Exception {
        memberLevelEntityId.valid();
        memberLevelPriorityVO.valid();
        upgradeConfigurationVO.valid();
    }
}
